package com.mng.beanTest2;

public class Emp {
  public String name;
  public Dept dept;

  public void setName(String name) {
    this.name = name;
  }

  public void setDept(Dept dept) {
    this.dept = dept;
  }

  public Dept getDept() {
    return dept;
  }

  @Override
  public String toString() {
    return "Emp{" +
        "name='" + name + '\'' +
        ", dept=" + dept +
        '}';
  }
}
